package com.sunshine.ssm.system;

import com.sunshine.ssm.entity.vo.Email;

/**
 * @Description: 邮件发送服务
 * @FileName: com.sunshine.ssm.service
 * @author: Hong.Wei
 * @Date: 2016/12/23 15:25
 */
public interface IEmailService {

    /**
     * 发用邮件
     * @param email
     */
    void sendMail(Email email);

    /**
     * 异步发送邮件
     * @param email
     */
    void sendMailByAsynchronousMode(final Email email);

    /**
     * 同步发送邮件
     * @param email
     * @throws Exception
     */
    void sendMailBySynchronizationMode(Email email) throws Exception;
}
